class CreateTbBorrows < ActiveRecord::Migration
  def change
    create_table :tb_borrows do |t|
      t.integer :borrow_id
      t.integer :readerid
      t.integer :bookid
      t.string :bookname
      t.date :borrowTime
      t.date :backTime
      t.date :shouldbacktime
      t.string :is_back
      t.string :remark
      t.timestamps null: false
    end
  end
end
